package org.pt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.pt.model.Comment;
import org.pt.model.Post;

public interface SocialService {
    // 发帖相关
    Post createPost(Post post);
    IPage<Post> getPosts(Long userId, int page, int size);
    Post getPostById(Long postId);
    
    // 评论相关
    Comment createComment(Comment comment);
    IPage<Comment> getCommentsByPostId(Long postId, int page, int size);
    
    // 点赞相关
    void likePost(Long userId, Long postId);
    void unlikePost(Long userId, Long postId);
    boolean hasLiked(Long userId, Long postId);
    Integer getLikeCount(Long postId);
} 